<?php
/* @var $this ExamController */
/* @var $model Exam */
/* @var $form CActiveForm */
?>

<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'exam-form',
	// Please note: When you enable ajax validation, make sure the corresponding
	// controller action is handling ajax validation correctly.
	// There is a call to performAjaxValidation() commented in generated controller code.
	// See class documentation of CActiveForm for details on this.
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'possible'); ?>
		<?php echo $form->textField($model,'possible'); ?>
		<?php echo $form->error($model,'possible'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'possibleless'); ?>
		<?php echo $form->textField($model,'possibleless'); ?>
		<?php echo $form->error($model,'possibleless'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'examDate'); ?>
		<?php echo $form->textField($model,'examDate'); ?>
		<?php echo $form->error($model,'examDate'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'examTime'); ?>
		<?php echo $form->textField($model,'examTime'); ?>
		<?php echo $form->error($model,'examTime'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'examRoom'); ?>
		<?php echo $form->textField($model,'examRoom',array('size'=>60,'maxlength'=>150)); ?>
		<?php echo $form->error($model,'examRoom'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'floor'); ?>
		<?php echo $form->textField($model,'floor',array('size'=>45,'maxlength'=>45)); ?>
		<?php echo $form->error($model,'floor'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'examResult'); ?>
		<?php echo $form->textField($model,'examResult',array('size'=>4,'maxlength'=>4)); ?>
		<?php echo $form->error($model,'examResult'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'resultDate'); ?>
		<?php echo $form->textField($model,'resultDate'); ?>
		<?php echo $form->error($model,'resultDate'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'criteria'); ?>
		<?php echo $form->textField($model,'criteria',array('size'=>4,'maxlength'=>4)); ?>
		<?php echo $form->error($model,'criteria'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'description'); ?>
		<?php echo $form->textArea($model,'description',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'description'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'creatUser'); ?>
		<?php echo $form->textField($model,'creatUser',array('size'=>20,'maxlength'=>20)); ?>
		<?php echo $form->error($model,'creatUser'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'createDate'); ?>
		<?php echo $form->textField($model,'createDate'); ?>
		<?php echo $form->error($model,'createDate'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'updateUser'); ?>
		<?php echo $form->textField($model,'updateUser',array('size'=>20,'maxlength'=>20)); ?>
		<?php echo $form->error($model,'updateUser'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'updateDate'); ?>
		<?php echo $form->textField($model,'updateDate'); ?>
		<?php echo $form->error($model,'updateDate'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'projectID'); ?>
		<?php echo $form->textField($model,'projectID'); ?>
		<?php echo $form->error($model,'projectID'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->